<div id="main-content">
  <div class="container-fluid">
    <div class="row-fluid">
      <div class="span12">
        <div class="widget-block">
          
          <div class="widget-head">
            <h5><?=$title_table?></h5>
            <div class="widget-control pull-right">
              <a href="#" data-toggle="dropdown" class="btn dropdown-toggle"><i class="icon-cog"></i><b class="caret"></b></a>
              <ul class="dropdown-menu">
                <li><a href="<?=  site_url("outlet/tambahan/add-pic-pica") ?>"><i class="icon-plus"></i> Add New</a></li>
              </ul>
            </div>
          </div>
          <div class="widget-content">
            <div class="widget-box">
              <table class="data-tbl-boxy table">
                <thead>
                  <tr>
                    <th>Name</th>
                    <th>Email</th>
                    <th>Topik</th>
                    <th>Option</th>
                  </tr>
                </thead>
                <tbody>
                  <?php
                  if(is_array($data)){
                    $kategori = array(
                          1 => "SDM",
                          2 => "Service",
                          3 => "Administrasi",
                          4 => "Promo",
                          5 => "Tools",
                          6 => "IT - Software & Hardware",
                          7 => "Parts",
                          9 => "Lainnya"
                      );
                    foreach ($data as $key => $value) {
                      print "
                  <tr>
                    <td>{$value->name}</td>
                    <td>{$value->email}</td>
                    <td>{$kategori[$value->kategori]}</td>
                    <td>
                      <div class='btn-group'>
                        <button data-toggle='dropdown' class='btn btn-small dropdown-toggle'>Action<span class='caret'></span></button>
                        <ul class='dropdown-menu'>
                          <li><a href='".site_url("outlet/tambahan/add-pic-pica/".$value->id_pic_pica)."'>Edit</a></li>
                          <li><a href='{$link_delete}'>Delete</a></li>
                        </ul>
                      </div>
                    </td>
                  </tr>";
                    }
                  }
                  ?>
                </tbody>
              </table>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>